﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BioModel
{
    [DataContract]
    public class Salg
    {
        [DataMember]
        private int salgId;
        [DataMember]
        private DateTime datoOprettet;
        [DataMember]
        private int antalBilletter;
        [DataMember]
        private string salgsType;
        [DataMember]
        private double totalPris;
        [DataMember]
        private int forestilling;
        [DataMember]
        private int kundeTlf;
        [DataMember]
        private List<Saede> saeder;

        public Salg()
        {
        }

        public Salg(DateTime datoOprettet, int antalBilletter, string salgsType, double totalPris, int forestilling, int kundeTlf, List<Saede> saeder)
        {
            this.datoOprettet = datoOprettet;
            this.antalBilletter = antalBilletter;
            this.salgsType = salgsType;
            this.totalPris = totalPris;
            this.forestilling = forestilling;
            this.kundeTlf = kundeTlf;
            this.saeder = saeder;
        }

        public Salg(int salgId, DateTime datoOprettet, int antalBilletter, string salgsType, double totalPris, int forestilling, int kundeTlf, List<Saede> saeder)
        {
            this.salgId = salgId;
            this.datoOprettet = datoOprettet;
            this.antalBilletter = antalBilletter;
            this.salgsType = salgsType;
            this.totalPris = totalPris;
            this.forestilling = forestilling;
            this.kundeTlf = kundeTlf;
            this.saeder = saeder;
        }

        public Salg(int salgId, DateTime datoOprettet, int antalBilletter, string salgsType, double totalPris, int forestilling, int kundeTlf)
        {
            this.salgId = salgId;
            this.datoOprettet = datoOprettet;
            this.antalBilletter = antalBilletter;
            this.salgsType = salgsType;
            this.totalPris = totalPris;
            this.forestilling = forestilling;
            this.kundeTlf = kundeTlf;
        }

        [DataMember]
        public int KundeTlf
        {
            get { return kundeTlf; }
            set { kundeTlf = value; }
        }

        [DataMember]
        public int Forestilling
        {
            get { return forestilling; }
            set { forestilling = value; }
        }

        [DataMember]
        public double TotalPris
        {
            get { return totalPris; }
            set { totalPris = value; }
        }

        [DataMember]
        public string SalgsType
        {
            get { return salgsType; }
            set { salgsType = value; }
        }

        [DataMember]
        public int AntalBilletter
        {
            get { return antalBilletter; }
            set { antalBilletter = value; }
        }

        [DataMember]
        public DateTime DatoOprettet
        {
            get { return datoOprettet; }
            set { datoOprettet = value; }
        }

        [DataMember]
        public int SalgId
        {
            get { return salgId; }
            set { salgId = value; }
        }

        [DataMember]
        public List<Saede> Saeder
        {
            get { return saeder; }
            set { saeder = value; }
        }

    }
}
